<%@ page contentType="text/html; charset=UTF-8"%>
<%@ include file="/commons/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>Web base</title>
</head>

<script type="text/javascript">
	function modifyFunc(funcId) {
	  window.location = "${ctx}/titleClass/classFunc!preModify.action?titleFunc.funcId="+funcId;
	}

	function deleteFunc(funcId) {
	  if(window.confirm('确定要删除该功能节点吗?')) {
	  		window.location = "${ctx}/titleClass/classFunc_delete.action?titleFunc.funcId="+funcId;
	  }  
	}

	function addFunc(actionValue) {
		document.func.action=actionValue ;		
		document.func.submit() ;
				
	}
	
	function nextFunc(actionValue, funcId) {
		document.func.action=actionValue ;
		document.getElementById("titleFunc.funcId").value=funcId ;
		
		document.func.submit() ;
				
	}	

</script>

<link href="${ctx}/css/main/base.css" rel="stylesheet" type="text/css" />
<link href="${ctx}/css/main/main.css" rel="stylesheet" type="text/css" />
<body>
<form name="func" action="" method="post" >

<input type="hidden" name="titleClass.classId" value="${titleClass.classId }" />
<input type="hidden" name="titleFunc.funcId" value="${titleFunc.funcId }" />
<input type="hidden" name="classCode" value="${classCode}" />
<input type="hidden" name="className" value="${className}" />

<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tab_m left">

  <tr>
    <td colspan="2" class="zctop"><span class="font14 zc_bt">子功能项设置</span></td>
  </tr> 
    
   <tr>
    <td colspan="2" class="w1">
    <div class="cd_img" style="float:left;"><strong>上级功能：${className} </strong></div>        
       <div style="float:right; margin-right:75px;" >
       
       <c:if test="${(fn:length(classCode))!=2}">       
       <a href="javascript:history.back()" target="mright">返回上一级</a> 	
       </c:if>
          
    </div>
    </td>
   </tr>	 
    
  <s:iterator value="titleFuncs" status="titleFunc" id="titleFunc1">
	  <tr>
	    <td class="w1">
	    <div class="cd_img"><img src="${ctx}/images/menu/data.gif"/></div>
	    <s:property value="classCodeGroup"/><s:property value="funcName"/> 
	    </td>
	    <td width="30%">
	    <span onclick=" modifyFunc('${funcId}');" style="cursor: pointer;"> 编辑</span>        
        <a href="javascript:nextFunc('${ctx}/titleClass/classFunc_manageFunc.action', '${funcId}' )" target="mright">下一级</a> 
	    <span onclick=" deleteFunc('${funcId}');" style="cursor: pointer;">删除</span>
	    </td>
	  </tr>			
  </s:iterator>
  
    </tr>
     <tr>
    <td colspan="2" class="zd_z center">
    <a href="javascript:addFunc('${ctx}/titleClass/classFunc!preCreate.action')" target="mright"><img src="${ctx}/images/main/zd_z.gif" /></a></td>
    </tr>
</table>

</form>
</body>
</html>
